package com.mirror.entity.oldman;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;


/**
 * 类型:Entity-医生
 */
@Entity
@Table(name = "doctor")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "doctor_sequence")
public class Doctor {


    /**
     *
     */
    private static final long serialVersionUID = -661025207311635803L;

    /**
     * 姓名
     */
    private String name;
    /**
     * 工号
     */
    private String num;
    /**
     * 性别
     */
    private String sex;
    /**
     * 民族
     */
    private String ethnic;
    /**
     * 身份证
     */
    private String idCard;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 密码
     */
    private String password;
    /**
     * 密码
     */
    private String md5pass;
    /**
     * 证书图片
     */
    private String url;

    private String dtype;
    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    @Column(name = "ID", nullable = false, length = 32)
    private String id;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    private boolean isdel;

    public boolean isIsdel() {
        return isdel;
    }

    public void setIsdel(boolean isdel) {
        this.isdel = isdel;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDtype() {
        return dtype;
    }

    public void setDtype(String dtype) {
        this.dtype = dtype;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMd5pass() {
        return md5pass;
    }

    public void setMd5pass(String md5pass) {
        this.md5pass = md5pass;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取性别
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置性别
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取民族
     */
    public String getEthnic() {
        return ethnic;
    }

    /**
     * 设置民族
     */
    public void setEthnic(String ethnic) {
        this.ethnic = ethnic;
    }

    /**
     * 获取身份证
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     * 设置身份证
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    /**
     * 获取联系电话
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置联系电话
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }


    /**
     * 获取姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 设置姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取工号
     */
    public String getNum() {
        return num;
    }

    /**
     * 设置工号
     */
    public void setNum(String num) {
        this.num = num;
    }


}
